package com.speed.util.executor.task;


import com.speed.util.qc.MatrixToImageWriter;

/**
 * 生成二维码任务
 * @author ZhouChiJian
 *
 */
public class QrCodeGenerTask implements Runnable {

	private String path;
	private String signCode;
	private String mobile;

	public QrCodeGenerTask(){}
	public QrCodeGenerTask(String _signCode,String _mobile,String _path){
		path = _path;
		mobile = _mobile;
		signCode = _signCode;
	}
	
	
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getSignCode() {
		return signCode;
	}

	public void setSignCode(String signCode) {
		this.signCode = signCode;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	@Override
	public void run() {
		try {
			MatrixToImageWriter.genCode(getSignCode(), getMobile(),
					getPath());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
